//
//  MLAWebVC.m
//  MagicLampApp
//
//  Created by Zheng on 2018/12/26.
//  Copyright © 2018 zheng.magic.lamp.app. All rights reserved.
//

#import "MLAWebVC.h"
#import <WebKit/WebKit.h>

@interface MLAWebVC ()

@end

@implementation MLAWebVC {
    WKWebView *webView;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.title = _titleStr;

    webView = [[WKWebView alloc] initWithFrame:CGRectZero];
    [self.view addSubview:webView];
    [webView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
    [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:_urlStr]]];
}



@end
